package com.liuhongwei.test.service;

import java.util.List;
import com.alibaba.fastjson.JSONObject;
import com.liuhongwei.test.entity.vo.JSONRequest;
import com.liuhongwei.test.entity.vo.JSONResponse;
import com.liuhongwei.test.exception.BusinessException;
import com.liuhongwei.test.entity.po.SysCountry;
/**
 * 国家表Service
 * @auther: 刘洪玮
 * @date: 2025-07-24 11:32
 */
public interface SysCountryService {

	/**
	 * 页面分页查询
	 */
	JSONResponse getPage(JSONRequest jsonRequest) throws BusinessException;

	/**
	 * 页面新增
	 */
	JSONResponse add(JSONRequest jsonRequest) throws BusinessException;

	/**
	 * 页面更新
	 */
	JSONResponse update(JSONRequest jsonRequest) throws BusinessException;

	/**
	 * 页面删除
	 */
	JSONResponse delete(JSONRequest jsonRequest) throws BusinessException;

	/**
	 * 页面详情
	 */
	JSONResponse get(JSONRequest jsonRequest) throws BusinessException;

	/**
	 * 新增批量
	 */
	Integer addBatch(List<SysCountry> listBean) throws BusinessException;

	/**
	 * 新增批量或修改
	 */
	Integer addOrUpdateBatch(List<SysCountry> listBean) throws BusinessException;

	/**
	 * 根据Uuid查询
	 */
	SysCountry selectByUuid(String uuid) throws BusinessException;

	/**
	 * 根据Uuid更新
	 */
	Integer updateByUuid(SysCountry bean, String uuid) throws BusinessException;

	/**
	 * 根据Uuid删除
	 */
	Integer deleteByUuid(String uuid) throws BusinessException;

	/**
	 * 根据Code查询
	 */
	SysCountry selectByCode(String code) throws BusinessException;

	/**
	 * 根据Code更新
	 */
	Integer updateByCode(SysCountry bean, String code) throws BusinessException;

	/**
	 * 根据Code删除
	 */
	Integer deleteByCode(String code) throws BusinessException;

}